package com.uroad.jilinpda.widget;

import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.TextView;

import com.uroad.jilinpda.R;


/**
 * @创建者 wlw
 * @创建时间 2019/6/5 16:15
 * @描述 OBU激活loading
 */
public class OBULoadingDialog extends Dialog {
    private Context context;
    private TextView tvTips;


    public OBULoadingDialog(@NonNull Context context) {
        super(context, R.style.default_dialog);
        this.context = context;
        initView();
    }

    private void initView() {
        View view = View.inflate(context, R.layout.dialog_obu_loading, null);
        tvTips = (TextView) view.findViewById(R.id.tv_tips);
        setContentView(view);
        setCanceledOnTouchOutside(false);
    }

    public void setTips(String trips){
        if (tvTips != null) {
            tvTips.setText(trips);
        }
    }

}
